<?php

namespace App\Models;

use App\Models\Contract\SerializeDatetime;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Goodsorder extends Model
{
    use HasFactory, SerializeDatetime;

    protected $table = 'goodsorder';



    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function details()
    {
        return $this->hasMany(AdrewardDetail::class);
    }
}
